package main

import (
	"fmt"
	"github.com/chuanshan/webhook/handler"
	"net/http"
)

func main() {
	http.HandleFunc("/webhook", handler.WeHook)
	err := http.ListenAndServe(":8080", nil)
	if err != nil {
		fmt.Printf("failed to start server, err:%s", err.Error())
	}
}